You are here

function flag_flag::admin_path in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag/flag_flag.inc \flag_flag::admin_path()
  2. 7.2 flag.inc \flag_flag::admin_path()

Returns administrative menu path for carrying out some action.

File

./flag.inc, line 1193
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

function admin_path($action) {
  if ($action == 'edit') {

    // Since 'edit' is the default tab, we omit the action.
    return FLAG_ADMIN_PATH . '/manage/' . $this->name;
  }
  else {
    return FLAG_ADMIN_PATH . '/manage/' . $this->name . '/' . $action;
  }
}