You are here

function _assets_form_action_title in Asset 7

Helper to get asset form action title.

1 string reference to '_assets_form_action_title'
asset_menu in ./asset.module
Implements hook_menu().

File

./asset.module, line 1153
Asset module.

Code

function _assets_form_action_title($op, $entity_type) {
  if ($info = entity_get_info($entity_type)) {
    switch ($op) {
      case 'add':
        return t('Add @label', array(
          '@label' => $info['label'],
        ));
      case 'import':
        return t('Import @label', array(
          '@label' => $info['label'],
        ));
    }
  }
}