delta_ui.module 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Implements hook_permission().
  4. */
  5. function delta_ui_permission() {
  6. return array(
  7. 'administer delta' => array(
  8. 'title' => t('Administer Delta'),
  9. 'description' => t('Administer settings for the Delta module.'),
  10. ),
  11. );
  12. }
  13. /**
  14. * Implements of hook_menu().
  15. */
  16. function delta_ui_menu() {
  17. $items['admin/appearance/delta/list/%delta/configure'] = array(
  18. 'title' => 'Settings',
  19. 'description' => 'Override settings for a layout.',
  20. 'page callback' => 'drupal_get_form',
  21. 'page arguments' => array('delta_ui_layout_configure', 4),
  22. 'access arguments' => array('administer delta'),
  23. 'file' => 'delta_ui.admin.inc',
  24. 'type' => MENU_NORMAL_ITEM,
  25. );
  26. return $items;
  27. }
  28. /**
  29. * Implements of hook_menu_alter().
  30. */
  31. function delta_ui_menu_alter(&$items) {
  32. $items['admin/appearance/delta']['type'] = MENU_LOCAL_TASK;
  33. }
  34. /**
  35. * Implements hook_ctools_plugin_directory().
  36. */
  37. function delta_ui_ctools_plugin_directory($module, $plugin) {
  38. if ($module == 'ctools' && $plugin == 'export_ui') {
  39. return 'export_ui';
  40. }
  41. }