Questions tagged [drupal-alter]

drupal_alter() is a function that allows modules to alter the data structures used by other modules.

The function is used to invoke the implementation of hook_$type_alter() made from other modules. Such hooks are used to allow third-party modules to alter the data used by a module, and they should replace the custom hooks before used on Drupal 5, where drupal_alter() was not used.

17 questions
0
votes
2 answers

Drupal: collapse CCK Fields in edit content pages?

can I collapse the field in my edit-content page in Drupal ? For example, at the bottom of the page Revision Information, URL Path Settings, Authoring Information etc are collapsed. I would like to have this functionality for the CCK Fields as…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
0
votes
2 answers

Stop a custom submit button from firing the form validation on a CCK form

I've added a submit button inside a fieldgroup on a CCK form using hook_form_alter as follows: function mymodule_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'object_node_form') { $form['group_wikipedia']['search'] = array( …
hitfactory
  • 2,896
  • 5
  • 24
  • 22
1
2