function action_load

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.

2 calls to action_load()
action_admin_delete_form_submit in drupal/core/modules/action/action.admin.inc
Form submission handler for action_admin_delete_form().
BulkForm::views_form_submit in drupal/core/modules/action/lib/Drupal/action/Plugin/views/field/BulkForm.php
Implements \Drupal\views\Plugin\views\Plugin\field\FieldPluginBase::views_form_submit().

File

drupal/core/modules/action/action.module, line 455
This is the Actions module for executing stored actions.

Code

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