system.inc 796 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @file
  4. * System module integration.
  5. */
  6. /**
  7. * Implements hook_init().
  8. */
  9. function custom_formatters_init() {
  10. module_invoke_all('custom_formatters_init');
  11. }
  12. /**
  13. * Implements hook_element_info().
  14. */
  15. function custom_formatters_element_info() {
  16. $types = array();
  17. drupal_alter('custom_formatters_element_info', $types);
  18. return $types;
  19. }
  20. /**
  21. * Implements hook_theme().
  22. */
  23. function custom_formatters_theme() {
  24. $theme = array();
  25. drupal_alter('custom_formatters_theme', $theme);
  26. return $theme;
  27. }
  28. /**
  29. * Implements hook_form_alter().
  30. */
  31. function custom_formatters_form_alter(&$form, &$form_state, $form_id) {
  32. drupal_alter('custom_formatters_form_alter', $form, $form_state, $form_id);
  33. drupal_alter("custom_formatters_form_{$form_id}_alter", $form, $form_state);
  34. }