[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/macro/ -> macro.module (summary)

(no description)

File Size: 384 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 includes/install.inc

Defines 17 functions

  macro_help()
  macro_perm()
  macro_init()
  macro_menu()
  macro_form_alter()
  macro_import_action_submit()
  macro_export_action_submit()
  macro_export_session_action_submit()
  macro_record_macro()
  _macro_recursively_convert_objects_to_arrays()
  macro_export_macro()
  macro_get_macro()
  macro_import_macro()
  macro_import_macro_submit()
  macro_admin_settings()
  macro_end_macro_session()
  drupal_execute_macro()

Functions
Functions that are not part of a class:

macro_help($section)   X-Ref
Implementation of hook_help().


macro_perm()   X-Ref
Implementation of hook_perm().


macro_init()   X-Ref
Implementation of hook_init().


macro_menu()   X-Ref
Implementation of hook_menu().


macro_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().


macro_import_action_submit($form, &$form_state)   X-Ref
Form submit handler to redirect to the import form.


macro_export_action_submit($form, &$form_state)   X-Ref
Form callback to handle macro export functionality.


macro_export_session_action_submit($form, &$form_state)   X-Ref
Form callback to handle macro export session functionality.


macro_record_macro($form, &$form_state)   X-Ref
A form submission handler, that stores the form submissions into the variables table


_macro_recursively_convert_objects_to_arrays($entity)   X-Ref
This recursively runs thru an object and converts it into an array.
This is to be called for form entries as we do not want varexport to treat any element
as an object. If varexport sees an object, it will output stdClass::__set_state, which is
not defined and we cannot define it either. So we recursively cast all objects to arrays.


macro_export_macro()   X-Ref
A form callback that displays the macro exported.

The output of this callback should be saved to the profiles/$profile/macros.inc file, to be
automatically played back upon completed install.
return: a textarea containing the recorded macros

macro_get_macro()   X-Ref
The output of this callback should be saved to the profiles/$profile/macros.inc file, to be
automatically played back upon completed install.

return: a code representation of the recorded macro.

macro_import_macro()   X-Ref
A form callback that displays the macro import form.

return: a form for importing a previously recorded macro

macro_import_macro_submit($form, &$form_state)   X-Ref
Implementation of macro_import_macro hook_submit function.

Plays back the submitted macro.

macro_admin_settings()   X-Ref
Menu callback for the macro settings form.


macro_end_macro_session()   X-Ref
End a macro session from a page callback with a redirect to the export form.


drupal_execute_macro($macro)   X-Ref
Attempts to programmatically submit all the forms that have been specified in the $macros collection.

param: array
return: array



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7