public function add_attribute_type() { $pat = PendingType::getByHandle($this->post('atHandle')); if (is_object($pat)) { $pat->install(); } $this->redirect('dashboard/system/attributes/types', 'saved', 'attribute_type_added'); }
</table> <div class="well clearfix"> <?php $b1 = $interface->submit(t('Save'), 'attribute_type_associations_form', 'right', 'btn-primary'); print $b1; ?> </div> </form> <h4><?php echo t('Custom Attribute Types'); ?> </h4> <?php $ch = Loader::helper('concrete/ui'); $types = PendingAttributeType::getList(); if (count($types) == 0) { ?> <?php echo t('There are no available attribute types awaiting installation.'); } else { ?> <ul class="item-select-list"> <?php foreach ($types as $at) { ?> <li> <span> <form id="attribute_type_install_form_<?php echo $at->getAttributeTypeHandle(); ?>