function actions_load

actions_load($aid)

Retrieves a single action from the database.

Parameters

$aid: The ID of the action to retrieve.

Return value

The appropriate action row from the database as an object.

File

includes/actions.inc, line 373
This is the actions engine for executing stored actions.

Code

function actions_load($aid) {
  return db_query("SELECT aid, type, callback, parameters, label FROM {actions} WHERE aid = :aid", array(':aid' => $aid))->fetchObject();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!actions.inc/function/actions_load/7.x