You are here

function bean_edit in Bean (for Drupal 7) 7

Edit bean page callback

1 string reference to 'bean_edit'
bean_menu in ./bean.module
Implements hook_menu().

File

includes/bean.pages.inc, line 22
Bean Functions

Code

function bean_edit(Bean $bean) {
  $type = bean_fetch_plugin_info($bean->type);
  drupal_set_title(t('Edit @type: @title', array(
    '@type' => $type['label'],
    '@title' => $bean->label,
  )), PASS_THROUGH);
  return drupal_get_form('bean_form', $bean);
}