You are here

function sharebar_machine_name_load in ShareBar 6

Same name and namespace in other branches
  1. 7.2 sharebar.admin.inc \sharebar_machine_name_load()
  2. 7 sharebar.admin.inc \sharebar_machine_name_load()

Callback to load existing machine name.

File

./sharebar.admin.inc, line 182
Admin page callbacks for the block module.

Code

function sharebar_machine_name_load($name) {
  $buttons = unserialize(variable_get('sharebar_buttons', sharebar_buttons_def()));
  if (is_array($buttons) && count($buttons)) {
    $button[] = $buttons[$name]->machine_name;
  }
  return reset($button);
}