Guest User

Untitled

a guest
Jan 6th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. system.api.php ausschnitt:
  2.  
  3. function hook_form_alter(&$form, &$form_state, $form_id) {
  4.       $form['body']['und'][0]['format']['guidelines']['#access'] = FALSE;
  5.       $form['body']['und'][0]['format']['help']['#access'] =FALSE
  6. if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
  7.       $form['workflow']['upload_' . $form['type']['#value']] = array(
  8.       '#type' => 'radios',
  9.       '#title' => t('Attachments'),
  10.       '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
  11.       '#options' => array(t('Disabled'), t('Enabled')),
  12.     );
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment