actions_load

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 8 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.

Code

includes/actions.inc, line 367

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