function flag_flag::admin_path in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.inc \flag_flag::admin_path()
- 7.2 flag.inc \flag_flag::admin_path()
Returns administrative menu path for carrying out some action.
File
- includes/
flag/ flag_flag.inc, line 1521 - Contains the flag_flag class. Flag type classes use an 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;
}
}