You are here

function hook_magic in Magic 7

A hook for modules to add their settings to the magic settings array.

This is for modules to add their own settings to the magic settings array which is in reality part of the hook_form_system_theme_settings_alter. Because of magic's low weight, we feel this might be necissary.

Parameters

array $magic_settings: The renderable form array of the magic module theme settings.

string $theme: The theme that the settings will be editing.

Return value

The array of settings within the magic module theme page.

1 function implements hook_magic()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

magic_dev_magic in magic_dev/magic_dev.module
Implements hook_magic().
1 invocation of hook_magic()
magic_form_system_theme_settings_alter in ./magic.module
Implements hook_form_alter().

File

./magic.api.php, line 27
Hooks provided by the Magic module

Code

function hook_magic($magic_settings, $theme) {
  $settings = array();
  $settings['js']['my_own_js_settings'] = array(
    '#type' => 'checkbox',
    '#title' => t('Do you want to?'),
  );
  return $settings;
}