panopoly_magic.api.php in Panopoly 7
Hooks provided by Panopoly Magic.
File
modules/panopoly/panopoly_magic/panopoly_magic.api.phpView source
<?php
/**
* @file
* Hooks provided by Panopoly Magic.
*/
/**
* @addtogroup panopoly Panopoly hooks
* @{
*/
/**
* Alter the list of forms to improve.
*
* @param &$form_ids
* The list of form ids for the forms that panopoly_magic will improve. Add or
* remove items from this list.
*
* @see https://www.drupal.org/node/2261061
*/
function hook_panopoly_magic_forms_to_improve_alter(&$form_ids) {
// If you added your own content type and want the extra form fields added to
// the fieldsets that panopoly_magic creates, you can add the form id of your
// settings form here.
$form_ids[] = 'my_module_widget_content_type_edit_form';
}
/**
* @}
*/
Functions
Name | Description |
---|---|
hook_panopoly_magic_forms_to_improve_alter | Alter the list of forms to improve. |