Horje
drupal 7 hook_form_alter Code Example
drupal 7 hook_form_alter
function hook_form_alter(&$form, &$form_state, $form_id) {
  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'),
      ),
    );
  }
}




Php

Related
To find out where your php.ini is located Code Example To find out where your php.ini is located Code Example
wordpress check if class exists Code Example wordpress check if class exists Code Example
php serialize array Code Example php serialize array Code Example
How to display image from aws s3 in laravel blade Code Example How to display image from aws s3 in laravel blade Code Example
laravel file upload Code Example laravel file upload Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7