actions_load

Definition

actions_load($aid)
drupal/includes/actions.inc, line 351

Description

Retrieve a single action from the database.

Parameters

$aid integer The ID of the action to retrieve.

Return value

The appropriate action row from the database as an object.

Code

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