field_ui_field_overview_row_region
function field_ui_field_overview_row_region
field_ui_field_overview_row_region($row)
Returns the region to which a row in the 'Manage fields' screen belongs.
This function is used as a #region_callback in field_ui_field_overview_form(). It is called during field_ui_table_pre_render().
File
- modules/field_ui/field_ui.admin.inc, line 98
- Administrative interface for custom field type creation.
Code
function field_ui_field_overview_row_region($row) { switch ($row['#row_type']) { case 'field': case 'extra_field': return 'main'; case 'add_new_field': // If no input in 'label', assume the row has not been dragged out of the // 'add new' section. return (!empty($row['label']['#value']) ? 'main' : 'add_new'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field_ui!field_ui.admin.inc/function/field_ui_field_overview_row_region/7.x