You are here

function agenda_variable_set in Agenda 7.2

Same name and namespace in other branches
  1. 6.2 agenda.module \agenda_variable_set()
  2. 6 agenda.module \agenda_variable_set()
  3. 7 agenda.module \agenda_variable_set()

Set a variable

Parameters

int $bid The ID of the agenda block:

string $name The parameter required:

string $value The value:

1 call to agenda_variable_set()
agenda_admin_configure_submit in ./agenda.admin.php
Save all the settings into our agenda settings table

File

./agenda.module, line 284

Code

function agenda_variable_set($bid, $name, $value) {
  return db_merge('agenda')
    ->key(array(
    'bid' => $bid,
    'name' => $name,
  ))
    ->fields(array(
    'value' => $value,
  ))
    ->execute();
}