function acquia_lift_profiles_form_node_type_form_alter in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift_profiles/acquia_lift_profiles.module \acquia_lift_profiles_form_node_type_form_alter()
Implements hook_form_FORM_ID_alter().
File
- acquia_lift_profiles/
acquia_lift_profiles.module, line 390 - acquia_lift_profiles.module Provides Acquia Lift Profiles integration.
Code
function acquia_lift_profiles_form_node_type_form_alter(&$form, &$form_state) {
if (!isset($form['#node_type']->type)) {
return;
}
$type = 'node';
$bundle = $form['#node_type']->type;
// Add a thumbnail image fieldset.
form_load_include($form_state, 'inc', 'acquia_lift_profiles', 'acquia_lift_profiles.admin');
acquia_lift_profiles_thumbnail_entity_settings_form($form, $form_state, 'node', entity_get_info('node'), $bundle);
// Adjust the fieldset.
$form['acquia_lift_profiles']['#title'] = t('Acquia Lift Profiles');
$form['acquia_lift_profiles']['#group'] = 'additional_settings';
}