background preloader

Drupal

Facebook Twitter

PageSpeed Insights.

Form

Form API Reference. Global Redirect. Requêtes SELECT. Theme_table | theme. Returns HTML for a table. Parameters $variables: An associative array containing: header: An array containing the table headers. Each element of the array can be either a localized string or an associative array with the following keys: "data": The localized title of the table column. "field": The database field represented in the table column (required if user is to be able to sort on this column). "sort": A default sort order for this column ("asc" or "desc"). $rows = array( array( 'Cell 1', 'Cell 2', 'Cell 3' ), array( 'data' => array('Cell 1', array('data' => 'Cell 2', 'colspan' => 2)), 'class' => array('funky') ) ); attributes: An array of HTML attributes to apply to the table tag.caption: A localized string to use for the <caption> tag.colgroups: An array of column groups.

$colgroup = array( array( array( 'class' => array('funky'), ), ), array( 'data' => array( array( 'class' => array('funky'), ), ), 'class' => array('jazzy'), ), ); Related topics File includes/theme.inc, line 1895 Code. Hooks | module. Allow modules to interact with the Drupal core. Drupal's module system is based on the concept of "hooks". A hook is a PHP function that is named foo_bar(), where "foo" is the name of the module (whose filename is thus foo.module) and "bar" is the name of the hook. Each hook has a defined set of parameters and a specified result type. To extend Drupal, a module need simply implement a hook. The available hooks to implement are explained here in the Hooks section of the developer documentation.

The example functions included are not part of the Drupal core, they are just models that you can modify. See also Default theme implementations Callbacks Functions File includes/module.inc, line 589 API for loading and interacting with Drupal modules.

i18n