Skip to content
Snippets Groups Projects
Commit 61f0f0f2 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#265265 by neochief, jhodgdon: missing phpdoc @code tags on PHP code examples...

#265265 by neochief, jhodgdon: missing phpdoc @code tags on PHP code examples in form.inc and actions.inc
parent f07f5b26
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,7 @@ function actions_do($action_ids, &$object, $context = NULL, $a1 = NULL, $a2 = NU
/**
* Discover all action functions by invoking hook_action_info().
*
* @code
* mymodule_action_info() {
* return array(
* 'mymodule_functiondescription_action' => array(
......@@ -125,6 +126,7 @@ function actions_do($action_ids, &$object, $context = NULL, $a1 = NULL, $a2 = NU
* )
* );
* }
* @endcode
*
* The description is used in presenting possible actions to the user for
* configuration. The type is used to present these actions in a logical
......
......@@ -272,6 +272,7 @@ function form_get_cache($form_build_id, &$form_state) {
* in here when it is called.
* For example:
*
* @code
* // register a new user
* $form_state = array();
* $form_state['values']['name'] = 'robo-user';
......@@ -289,6 +290,7 @@ function form_get_cache($form_build_id, &$form_state) {
* $form_state['values']['name'] = 'robo-user';
* $form_state['values']['op'] = t('Save');
* drupal_execute('story_node_form', $form_state, (object)$node);
* @endcode
*/
function drupal_execute($form_id, &$form_state) {
$args = func_get_args();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment