Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system.api.php ausschnitt:
- function hook_form_alter(&$form, &$form_state, $form_id) {
- $form['body']['und'][0]['format']['guidelines']['#access'] = FALSE;
- $form['body']['und'][0]['format']['help']['#access'] =FALSE
- if (isset($form['type']) && $form['type']['#value'] . '_node_settings' == $form_id) {
- $form['workflow']['upload_' . $form['type']['#value']] = array(
- '#type' => 'radios',
- '#title' => t('Attachments'),
- '#default_value' => variable_get('upload_' . $form['type']['#value'], 1),
- '#options' => array(t('Disabled'), t('Enabled')),
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment