Retrieves a single action from the database.
$aid: The ID of the action to retrieve.
The appropriate action row from the database as an object.
function action_load($aid) {
return db_query("SELECT aid, type, callback, parameters, label FROM {actions} WHERE aid = :aid", array(
':aid' => $aid,
))
->fetchObject();
}