Révision b08d2851
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/flag/includes/flag/flag_node.inc | ||
---|---|---|
55 | 55 |
'#title' => t('Display checkbox on node edit form'), |
56 | 56 |
'#description' => t('If you elect to have a checkbox on the node edit form, you may specify its initial state in the settings form <a href="@content-types-url">for each content type</a>.', array('@content-types-url' => url('admin/structure/types'))), |
57 | 57 |
) + $form['display']['show_on_form']; |
58 |
|
|
59 |
// Add the 'teaser' view mode as a default value for the entity link display |
|
60 |
// option if this is a new flag. |
|
61 |
if (empty($this->fid)) { |
|
62 |
$form['display']['show_in_links']['#default_value']['teaser'] = 'teaser'; |
|
63 |
} |
|
58 | 64 |
} |
59 | 65 |
|
60 | 66 |
function type_access_multiple($entity_ids, $account) { |
Formats disponibles : Unified diff
Weekly update of contrib modules